package com.hkts.management.cargoapply.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hkts.management.cargoapply.entity.HktsCargoApply;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hkts.management.common.utils.Result;
import com.hkts.management.model.VO.HktsCargoApplyOnPCVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hml
 * @since 2021-04-22
 */
public interface IHktsCargoApplyService extends IService<HktsCargoApply> {

        /**
         *  分页查询
         * @param page
         * @param hktsCargoApply
         * @return
         */
        IPage<HktsCargoApply> selectPage(Page<HktsCargoApply> page, HktsCargoApply hktsCargoApply);

        List<HktsCargoApply> selectList(HktsCargoApply hktsCargoApply);

        int getCargoLanelByCargoId(String cargoId,Integer check_status);

        Result updateCheckStatus(String orderId, Integer check_status);

        HktsCargoApply getCargoApplyByCargoIdAndDriver(String cargoId,String driverId);

        int selectCount(HktsCargoApply hktsCargoApply);
        Result<HktsCargoApplyOnPCVo> getApplyInfo(String applyId);

        }